package com.ksyun.seckill.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ksyun.seckill.constant.Constant;
import lombok.Data;

import java.util.Date;

/**
 * @author ksc
 */
@Data
public class CampaignVO {

    /**
     * 自增Id.
     */
    private Long id;

    /**
     * 名称.
     */
    private String name;

    /**
     * 描述.
     */
    private String descr;

    /**
     * logo地址.
     */
    private String imgUrl;



    /**
     * 计划库存数.
     */
    private Long planInventory;

    /**
     * 当前库存数.
     */
    private Long currentInventory;

    /**
     * 状态.
     * 上线，下线，暂停等.
     */
    private String statusName;

    /**
     * 开始时间.
     */
    @JsonFormat(pattern = Constant.COMMON_DATE_AND_TIME, timezone = "GMT+8")
    private Date beginTime;

    /**
     * 结束时间.
     */
    @JsonFormat(pattern = Constant.COMMON_DATE_AND_TIME, timezone = "GMT+8")
    private Date endTime;

    /**
     * 创建时间.
     */
    @JsonFormat(pattern = Constant.COMMON_DATE_AND_TIME, timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间.
     */
    @JsonFormat(pattern = Constant.COMMON_DATE_AND_TIME, timezone = "GMT+8")
    private Date updateTime;

}